package com.kmdd.xtds.room

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey


@Entity(tableName = "bloodPressures")
class BloodPressure {
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id")
    var id: Long? = null

    //收缩压
    @ColumnInfo(name = "shrink")
    var shrink: String = "0"

    //舒张压
    @ColumnInfo(name = "diastolicBloodPressure")
    var diastolicBloodPressure: String = "0"

    //血氧饱和度
    @ColumnInfo(name = "bloodOxygenSaturation")
    var bloodOxygenSaturation: String = "0"

    var date: String = ""
    var time: String = ""

    constructor(
        shrink: String,
        diastolicBloodPressure: String,
        bloodOxygenSaturation: String,
        date: String,
        time: String
    ) {
        this.shrink = shrink
        this.diastolicBloodPressure = diastolicBloodPressure
        this.bloodOxygenSaturation = bloodOxygenSaturation
        this.date = date
        this.time = time
    }
}